import * as actionTypes from './constants'
import { getIntroDetail } from '@/service/service'

export const changeIntroDetailAction = (res) => ({
  type: actionTypes.CHANGEINTRODETAIL,
  introDetailList: res.playlist
})

export const getIntro = (id) => {
  return dispatch => {
    getIntroDetail(id).then(res => {
      dispatch(changeIntroDetailAction(res))
    })
  }
}



